
public class Main implements Runnable{
	public Thread mainLoop = new Thread(this);
	public static boolean restart = false;
	public static boolean dupa = false;
	public static Timer lvlTmr;
	public Main() {
		mainLoop.start();
		
	}
	
	public static void main(String[] args) {
		Main ok = new Main();

	}
	
	@Override
	public void run() {
		lvlTmr = new Timer();
		while (true) {
			Frame okno = new Frame();						
			
			while (true) {
				
				if (restart) {
					okno.dispose();
					restart = false;
					break;
				}
			}
		}
		
	}

}
